<%@ tag import="com.aiwei.tdjk.utils.SpringUtils" %>
<%@ tag import="com.aiwei.tdjk.service.EntertainmentTypeService" %>
<%@ tag import="org.springframework.util.StringUtils" %>
<%@ tag import="org.util.StringUtil" %>
<%@ tag import="com.aiwei.tdjk.entity.EntertainmentType" %>
<%@ tag pageEncoding="UTF-8"%>
<%@ attribute name="id" type="java.lang.Long" required="true" description="当前要展示的用户的id" %>
<%!private EntertainmentTypeService typeService;%>
<%
    if(typeService == null) {
        typeService = SpringUtils.getBean(EntertainmentTypeService.class);
    }
    if(!StringUtils.isEmpty(id)){
        EntertainmentType type = typeService.findById(id);
        if(!StringUtils.isEmpty(type)){
            out.write(type.getName());
        }
    }
%>
